<template>
  <div class="app-container">
    <el-card>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="收货管理" name="first" :lazy="true">
          <allReceipt />
        </el-tab-pane>
        <el-tab-pane label="已收货" name="second" :lazy="true">
          <receipt />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import receipt from './receipt.vue'
import allReceipt from './allReceipt.vue'
export default {
  data() {
    return {
      activeName: 'first'
    }
  },
  components: {
    receipt,//收货管理
    allReceipt,//已收货
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>

<style scoped>
.app-container {
  padding: 20px;
}

.el-card {
  margin-bottom: 20px;
}

.btn el-button {
  margin-bottom: 20px;
}

.el-pagination {
  float: right;
  margin: 20px;
}
</style>
